let color1 = ['#FFFF33', '#33FFDD', '#FF8800']
let color2 = ['#99FF33', '#FF0000']

let emphasisStyle = {
  itemStyle: {
    shadowBlur: 10,
    shadowColor: 'rgba(0,0,0,0.3)'
  }
};

let echartsOption = {

  tooltip: {

  },
  legend: {
    show: true,
    data: ['已导出', '待导出'],
    textStyle: {//图例文字的样式
      color: '#85ABC5'
    },
    right: 0,

    icon: 'roundRect',
    itemWidth: 8,
    itemHeight: 8,
  },
  grid: {
    top: "15%",
    left: "0%",
    right: "0%",
    bottom: "3%",
    show: false, // 显示边框
    borderColor: "#012f4a", // 边框颜色
    containLabel: true // 包含刻度文字在内
  },
  xAxis: {
    data: ["QCS", "MaillPro", "USB", "MMS", "PMIS"],
    axisTick: {show: false},
    axisLine: {
      show: true,
      lineStyle:{
        color:'#AAE3FF',
        opacity: 0.25,
      }
    },
    axisLabel: {
      color: '#58BFF9'

    }
  },
  yAxis: {
    name: "条",
    nameTextStyle:{
      color: '#85ABC5',
      padding:[0,0,-8,0],
    },
    splitLine: {
      show: true,
      lineStyle: {
        color: '#85ABC5', // 分割线颜色
        // type: 'dashed',
        width: 1,
        opacity: 0.05
      }
    },
    axisTick: {show: false},
    axisLine: {
      show: true,
      lineStyle:{
        color:'#AAE3FF',
        opacity: 0.25,
      }
    },
    axisLabel: {
      show: true,
      color: '#85ABC5',
      opacity:0.5
    }
  },
  // 待打包 已打包 已分发 执行成功 执行失败

  series: [
    {
      name: '已导出',
      type: 'bar',
      stack: 'Total',
      emphasis: emphasisStyle,
      showBackground: true,
      backgroundStyle: {
        color: 'transparent'
      },
      barWidth: '30%',
      itemStyle: {
        color: '#88D08D',
        barBorderRadius:[0,0,50,50]
      },
      data: [1, 2, 3, 4, 5],
      z: 10,
      label: {
        show: false,
        position: 'top'
      }
    },
    {
      name: '待导出',
      type: 'bar',
      stack: 'Total',
      emphasis: emphasisStyle,
      showBackground: true,
      backgroundStyle: {
        color: 'transparent'
      },
      barWidth: '30%',
      itemStyle: {
        color: '#00AEFF',
      },
      z: 10,
      barMinHeight: 1,
      label: {
        show: false,
        position: 'top'
      },
      data: [1, 2, 3, 4, 5],
    }
  ]
}
export {
  echartsOption
}
